﻿using System.IO;

namespace Microsoft.AspNetCore
{
    /// <summary>
    /// BootstrapAdminAuthentication 授权框架配置实体类
    /// </summary>
    public class BootstrapAdminAuthenticationOptions
    {
        /// <summary>
        /// 获得/设置 应用程序名称 默认 __bd__
        /// </summary>
        public string ApplicationAppName { get; set; } = "__bd__";

        /// <summary>
        /// 获得/设置 应用程序鉴别器 默认 "BootstrapAdmin"
        /// </summary>
        public string ApplicationDiscriminator { get; set; } = "BootstrapAdmin";

        /// <summary>
        /// 获得/设置 登录 Key 物理路径 默认 "..\\keys" (windows) "../keys" macOS/Linux
        /// </summary>
        public string KeyPath { get; set; } = $"..{Path.DirectorySeparatorChar}keys";

        /// <summary>
        /// 获得/设置 Cookie 路径 默认 "/"
        /// </summary>
        public string CookiePath { get; set; } = "/";

        /// <summary>
        /// 获得/设置 Cookie Domain 默认 null
        /// </summary>
        public string CookieDomain { get; set; }

        /// <summary>
        /// 获得/设置 登录授权应用程序
        /// </summary>
        public string AuthHost { get; set; }
    }
}
